package com.zhitan.ems.app.iot.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhitan.ems.app.iot.entity.DevicePropertyDataEntity;
import com.zhitan.ems.app.iot.mapper.DevicePropertyDataMapper;
import com.zhitan.ems.app.iot.service.DevicePropertyDataService;
import com.zhitan.ems.framework.core.mp.base.BaseServiceImpl;

@Service
public class DevicePropertyDataServiceImpl extends BaseServiceImpl<DevicePropertyDataMapper, DevicePropertyDataEntity> implements DevicePropertyDataService {
	@Override
	public List<DevicePropertyDataEntity> getByDeviceId(Long deviceId) {
		   QueryWrapper<DevicePropertyDataEntity> queryWrapper =new QueryWrapper<>();
		   queryWrapper.eq("device_id", deviceId);
		   return this.list(queryWrapper);
	}
}